﻿<%@ Page Title="User Registration" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserRegistration.aspx.cs" Inherits="RedemptoristRetreatCenter.Account.UserRegistration" %>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %></h1>
    </hgroup>
    
    <p class="validation-summary-errors">
        <asp:Literal runat="server" ID="ErrorMessage" />
    </p>
    <table style="width: 100%;">
        <tr>
            <td><asp:Label ID="Label1" runat="server" AssociatedControlID="UserName">User name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="UserName" OnDataBinding ="Username_Change"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                    CssClass="field-validation-error" ErrorMessage="The username field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label2" runat="server" AssociatedControlID="Email">Email address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="Email" TextMode="Email" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Email"
                    CssClass="field-validation-error" ErrorMessage="The email address field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label3" runat="server" AssociatedControlID="Password">Password</asp:Label></td>
            <td><asp:TextBox runat="server" ID="Password" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Password"
                    CssClass="field-validation-error" ErrorMessage="The password field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label4" runat="server" AssociatedControlID="ConfirmPassword">Confirm password</asp:Label></td>
            <td><asp:TextBox runat="server" ID="ConfirmPassword" TextMode="Password" OnDataBinding="Password_ValidateMatch"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ConfirmPassword"
                    CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The confirm password field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label5" runat="server" AssociatedControlID="firstName">First Name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="firstName"/>    
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="firstName"
                    CssClass="field-validation-error" ErrorMessage="The first name field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label6" runat="server" AssociatedControlID="lastName">Last Name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="lastName"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="lastName"
                    CssClass="field-validation-error" ErrorMessage="The last name field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label7" runat="server" AssociatedControlID="addressLineOne">Address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="addressLineOne"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="addressLineOne"
                    CssClass="field-validation-error" ErrorMessage="The address field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label8" runat="server" AssociatedControlID="addressLineTwo">Address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="addressLineTwo"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label9" runat="server" AssociatedControlID="city">City</asp:Label></td>
            <td><asp:TextBox runat="server" ID="city"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="city"
                    CssClass="field-validation-error" ErrorMessage="The city field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label10" runat="server" AssociatedControlID="state">State</asp:Label></td>
            <td><asp:DropDownList runat="server" ID="state"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="state"
                    CssClass="field-validation-error" ErrorMessage="The state field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label11" runat="server" AssociatedControlID="zipCode">Zip Code</asp:Label></td>
            <td><asp:TextBox runat="server" ID="zipCode"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="zipCode"
                    CssClass="field-validation-error" ErrorMessage="The zip code field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label12" runat="server" AssociatedControlID="homePhone">Home Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="homePhone"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label13" runat="server" AssociatedControlID="cellPhone">Cell Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="cellPhone"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label14" runat="server" AssociatedControlID="businessPhone">Business Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="businessPhone"/></td>
        </tr>
    </table>
    <asp:Button ID="Register" runat="server" CommandName="Register_Click" Text="Register" OnClick="Register_Click" />
</asp:Content>

